結果 : python remove substring after last occurrence of character