結果 : python replace character at end of string