allow trailing space in word-first thesaurus queries