Fixed search functionality for Strings