Added confirmation dialogue to the replaceFun function