Trim whitespace from query strings

Many predictive keyboards insert a space after you select a prediction. (Swiftkey and Swype do this).  

This simple patch trims the search query, removing whitespace from the start/end of the query string.

A search for "foo " will find, "foo.com", for instance.