Add urlencode and trim around query for getSearchResults