RabinKarpMatcher modified