結果 : remove last and first character from string python