Quote:

richie's code does not work as it splits with double space.
remove the another space and it should work fine.



Eh? No it doesn't! That's a "+", not a ","

The sample output was from a real run, so I know it works.

While I'm intrigued about the reasons it doesn't work for JazzM he has another solution which appears to satisfy him.