stop searching if all words are found