The first argument of PadLeft() is not how many characters you want to add. It’s the totalWidth, the total length of the resulting string. PadLeft decides how many characters it needs to add, if at all. Since 2 is less than the length of your input string “1234”, it won’t add anything at all.
That worked fine. Then I don’t even have to determine the length of the string, just put 6 in that first part and the method does the rest. Perfect. Thanks.