結果 : check if string matches javascript