Pads a string with a specified character or string on the left until it reaches the desired length.
padleft(string, pad, length);
Pad “abc” with spaces to a length of 10
padleft("abc", " ", 10); // returns " abc"
Pad “123” with “0” to a length of 6
padleft("123", "0", 6); // returns "000123"
Pad “test” with “-” to a length of 8
padleft("test", "-", 8); // returns "----test"