Updated stringsplitter to catch extraspaces