結果 : python remove last instance of character from string