Trim whitespace from search queries (Bug 967754)