make entire search string configurable

added a test