({{, (RefLink[StringPadLeft, paclet:ref/StringPadLeft])["string",n] 
makes string be of length n, padding it on the left with spaces or truncating it if necessary. }, {, (RefLink[StringPadLeft, paclet:ref/StringPadLeft])["string",n,"padding"]
pads by repeating copies of the string padding.}, {, (RefLink[StringPadLeft, paclet:ref/StringPadLeft])[{"(Subscript[s, 1])","(Subscript[s, 2])",…}]
pads strings with spaces on the left to make them all the same length.}, {, (RefLink[StringPadLeft, paclet:ref/StringPadLeft])[{"(Subscript[s, 1])","(Subscript[s, 2])",…},n,…]
pads or truncates to make all strings of length n.}})

OpenersNotesSection(Spacer1)Details

(RefLink[StringPadLeft, paclet:ref/StringPadLeft]) effectively places repeated copies of padding to the left of string, truncating them when a total width of n characters has been achieved.

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Pad a string with whitespace to have total length 10:

StringPadLeft["abcde", 10]

Pad with a non-whitespace character:

StringPadLeft["abcde", 10, "."]

Make a list of strings the same length:

StringPadLeft[{"a", "ab", "abc", "abcd", "abcde"}]

Pad or truncate a list of strings to a given length:

StringPadLeft[{"a", "ab", "abc", "abcd", "abcde"}, 3]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[StringPadRight, paclet:ref/StringPadRight])  ▪  (RefLink[PadRight, paclet:ref/PadRight])  ▪  (RefLink[StringJoin, paclet:ref/StringJoin])  ▪  (RefLink[StringRiffle, paclet:ref/StringRiffle])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Text Generation, paclet:guide/TextConstruction])}, {▪(RefLinkPlain[String Manipulation, paclet:guide/StringManipulation])}, {▪(RefLinkPlain[Text Normalization, paclet:guide/TextNormalization])}, {▪(RefLinkPlain[String Operations, paclet:guide/StringOperations])}})}})