convert a string to words