search bug fix

fixed not being able to enter a string with spaces to the query.