結果 : remove n characters from end of string python