結果 : python replace last character from string