結果 : remove the last n characters from a string python