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 prenameprename 's/Text to remove goes here //' *.txt
prename 's/^/Text to add goes here /' *.txt