fix string pattern