Refactor StringMatcher -> NameMatcherType
Add matches method to NameMatcherType