Insert Predefined Text Into Filename?

If I wanted to insert some predefined text onto the end (or beginning) of a filename, how could I do this?
For example - if I wanted to insert the predefined text '(vacation photos)' to the end of some file/folder names with a single click by creating a button?
thank you

Insert text at the beginning:@NODESELECT Rename PATTERN "*" TO "{dlgstring|Text to insert:}*" AUTORENAME
Insert text at the end:@NODESELECT @set numChars = {dlgstring|Text to insert:} Rename TYPE=files PATTERN "*.*" TO "*{$numChars}.*" AUTORENAME Rename TYPE=dirs Pattern "*" TO "*{$numChars}" AUTORENAME

A button code to insert text at any choosen position of the filename can be found here: Insert text into the file names

der_affe, please link your forum account.

Could the way kundal's example work be extended to work both file and folders? Right now they only work on files. Thanks

Excuse my post above. The way kundal suggests does work on folders also. I have a strange thing going on in one of my directories which will not allow it. Thanks