結果 : string matching time complexity