make entire search string configurable

added a test
add test harness, fix tests