adds method to check word in search string