結果 : python check if string ends with a character