結果 : python replace last character of a string