結果 : replace the end of a string python