If you are looping through a folder using a for each container you could use a script task to check for the substring and set an appropriate condition for whether to process or not in a connector if you didnt want to alter filenames.