refactored for int-str convert. Added zero pad