Added replace function #193