Dialog in a rename script

RegExp basics: Removing characters from start/end of names, scroll down to "Advanced Bonus: Buttons that ask you how many characters to remove".