結果 : replace last character of a string python