結果 : replace last char in string python