How to add leading zeros to a transaction print?

In reply to cgales:

Thank you for your response!