Fixes string_format

Removes leading space and uses zeros instead of spaces.