String Name Folder Creation in Movie Render Queue

Hi, I’ve created a string that creates a new folder for each sequence rendered in the movie render queue. Unfortunately it only seems to work for the first job in the list. Once it moves to the second it no longer creates that folder to hold the images and just outputs them forgetting about the folder it should be creating. Any ideas?