結果 : remove last occurrence of character in string python