fixing up a replaceall method.