StringRepeat["str",n]
creates a string consisting of "str" repeated n times.
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.


StringRepeat
StringRepeat["str",n]
creates a string consisting of "str" repeated n times.
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.
Related Guides
Text
Wolfram Research (2015), StringRepeat, Wolfram Language function, https://reference.wolfram.com/language/ref/StringRepeat.html (updated 2020).
CMS
Wolfram Language. 2015. "StringRepeat." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/StringRepeat.html.
APA
Wolfram Language. (2015). StringRepeat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringRepeat.html
BibTeX
@misc{reference.wolfram_2025_stringrepeat, author="Wolfram Research", title="{StringRepeat}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/StringRepeat.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_stringrepeat, organization={Wolfram Research}, title={StringRepeat}, year={2020}, url={https://reference.wolfram.com/language/ref/StringRepeat.html}, note=[Accessed: 13-August-2025]}