You're right, Tim. vl-string-subst fails when target string is an integer because the sub-function converted it to a real. Joe Burke