RK string matching.