Fix string search for where clause