fixed bug with spaces in search string