add algorithm::replace