結果 : remove last occurrence of substring python