add and remove parts to a filename using prename

you may want to use prename, which is the package that installs the same rename programme that is used in many of the examples on the web:
sudo dnf install prename

prename 's/Text to remove goes here //' *.txt
prename 's/^/Text to add goes here /' *.txt