Add a StringCounter.hasString() method