fixed search for string issue