Used String.rjust to simplify zero padding