Do you need an array, or just a
string with the spaces removed?
Either way, the regular expression to use is ",\\s+" - a comma followed by one or more occurrences of whitespace. Splitting would be done as follows:
Replacing:
This
thread is more suitable for the intermediate forum, moving there.