結果 : replace last character of string python