結果 : python replace substring at end of string