結果 : python get all but last character in string