handle when the input is phrase, ie, words separated by space