fwiw, when I do that task, I do it by : 1) create file with input filenames 2) create duplicate file for output filenames 3) modify the first file to prepend "mv -vf" and wrap in quotes 4) modify the second file to wrap in quotes and replace/remove the string I want to replace 5) paste the files through bash
mostly because this allows me to do basically arbitrary transformations and verify them before execution