simple example of a string to word parser