結果 : python check if substring at end of string