I tried this, does not work for me actually. Let me elaborate, the string that I am getting is actually coming from an XML file. I am parsing the XML file using ofxXmlSettings. When I print out the string before attempting to split it comes out like this:
Architecture
Instrument Playing
Listening Habits
With double line breaks as you can see. But when I view the XML file directly the string looks like this:
“Architecture Instrument Playing Listening Habits”
As I have said. Perhaps this has to do with the encoding of the XML file, or with how the ofxXmlSettings class deencodes it? Either way, splitting it on the “ ” does not work for me.