Further improve docs for replace