search_string_match testing

The match testing and regular expression building is now done in separate methods. And I've added a simple spec to test `search_string_match`.