fix race condition with StringMatcher
Merge pull request #390 from dwightguth/race

fix race condition with StringMatcher