結果 : how to check if string ends with in python