implemented rexreplace, strreplace