[string match] add naive matcher and KMP matcher.