Update replace.hpp