Trim the search term to prevent trailing spaces spoil the search