結果 : replace last n characters from string python