Format zeros before using them in string

- add unit test to check
- only handles up to 3 digits long