String matching algorithm. Used as StringMatch.match(String, String)