結果 : python check for end of string