Trim whitespace on search queries