Trim search term to avoid bad searches