結果 : replace the last character of a string python