add solution to string matching