Strip search term against query more thoroughly.