Fixed bug if number of digits already there was greater than what was being padded to.