結果 : replace last occurrence of character python