My difficulty and I should have mentioned this is that the “T01” is being provided to the script as a parm in the script execution command line so it is a var in the script. So I was trying to accomplish this with a little rewriting of the scripts as possible.
So you might have explained a little more detailed what you’re trying to do. Ideally with some examples of the data before and after. If I got it right you could use something like this: