結果 : replace nth occurrence of character in string python