Updated doc comment of replaceWith