Update util.py

The string will exceed in length if we add 4 zero to the string.
Thus, we could only add extra zero according to the length.
beakey zhjie