Fixed incorrect runtime complexity in stringmatch.