added catches (try/except and replacing characters/terms) to search queries