結果 : remove only last character from string python