結果 : python check for character at end of string