In one drawing a certain variable is so many characters long say 7, and in another drawing the same type of variable is 9 characters long. How do I make the variable in both cases to get from 1234567 to 123 in the first drawing and 12345 in the second drawing. Eseentially the last four characters in the variable are useless for me. The variable I'm referring to is the filename and I want to get rid of the ".dwg" at the end. thanks