Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
how does this account for double spaces? I had to write a much longer script to account for them, this is a much more elegant solution but could you explain how it works around spaces?
Edit: Nevermind, I see it now. When splitting the string, any double spaces "seperate" an empty string that's included inside the list, so the double spacing is restored because when joining the list, a space is put in between the word and empty string, and again between the empty string and the next word.