Add replace method