implemented nonregex replace()