How to Append and Truncate in Bulk Rename function?

How to Append and Truncate specific amount of characters to/from the beginning/end of the file names with Bulk Rename function?

In the rename dialog, make sure "use preview list to build macros" is on.

Then click the a name in the New Name column under that, and start editing. Edits will be applied to all names at once.

Double-tap the Home or End key to align all the names to the left or right (e.g. before prefixing or appending).

Thank you Leo for your timely and accurate reply.