結果 : remove last n chars from string python