結果 : python check if last character in string