I've written this to substitute a part of text within a string; (defun substring (txt old new / tel rep) (setq tel 1) (repeat (strlen txt) (if (= (substr txt tel (strlen old)) old) (setq rep (strcat (substr txt 1 (1- tel)) new (substr txt (+ tel (strlen old)) (- (strlen txt) (1- tel) (strlen old))) ) txt rep ) ) (setq tel (1+ tel)) ) (if rep (eval rep) (eval txt)) ) Might there already be a command for this??? M