結果 : python check string ends with pattern