You can use bash substitution:
for file in 1234*
do mv "$file" "4321${file#1234}"
done
OR, replace the do mv
with the following
do mv "$file" "${file/1234/4321}"
See more in man bash
under EXPANSION
section, sub-section Parameter Expansion