implementing Guava CharMatcher
minor tweak