replace & replace_copy examples