結果 : python replace last character in a string