fix string matching