split(" ") splits based on a space gap. Because Rander is on the next line the space isn't taken into account and you need to include a split("\r"). I don't know how to use multiple delimiters, but Regex will work
Hey Ilya, can you specify what later you are doing with split text array? Because, you could simply 'build it' back into a string again, just comma separated + return carriage. Yet, this will depend on what you are doing with it futher.