({{, (RefLink[StringRepeat, paclet:ref/StringRepeat])["str",n] 
creates a string consisting of "str" repeated n times.}, {, (RefLink[StringRepeat, paclet:ref/StringRepeat])["str",n,max]
creates a string consisting of up to n copies of "str", truncated to be of maximum total length at most max.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Create a string of 50 a's:

StringRepeat["a",50]

Repeat a triplet of characters 10 times:

StringRepeat["abc",10]

Truncate after a fixed length:

StringRepeat["ab", 10, 19]

OpenersExampleSection2(Spacer1)Neat Examples  (1)

"Create" a telomere:

StringRepeat["TTAGGG", 100]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[StringJoin, paclet:ref/StringJoin])  ▪  (RefLink[Table, paclet:ref/Table])  ▪  (RefLink[ConstantArray, paclet:ref/ConstantArray])  ▪  (RefLink[StringPadLeft, paclet:ref/StringPadLeft])  ▪  (RefLink[StringPadRight, paclet:ref/StringPadRight])  ▪  (RefLink[StringPartition, paclet:ref/StringPartition])  ▪  (RefLink[FindRepeat, paclet:ref/FindRepeat])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[String Manipulation, paclet:guide/StringManipulation])}, {▪(RefLinkPlain[Text Generation, paclet:guide/TextConstruction])}, {▪(RefLinkPlain[Working with Templates, paclet:guide/WorkingWithTemplates])}})}})