結果 : remove last characters in a string python