Change Node#replace to Node#replace_with

`replace` is ambiguous. Use `replace_with` instead.