結果 : string except last character python