Thanks, this saves a useless call to reverse and reads better. Updated the script.
In reply to Re^2: Recursive renaming script by amr noman in thread Recursive renaming script by amr noman