modified addSearchedString so that arrayListOfSearchedStrings contains
no duplicates (Set-like)