[ysh methods] Implement Str.lines(eol=\n)