adds functionality for a string of words