New version of split words using stringstream.  Minor changes to original