Make #replace do what it actually should.