splitstring function

Split a string into words.