結果 : string matching code in python