pad0 function

Pad leading zeros to character