結果 : replace last char of string python