結果 : python remove text after last occurrence of character