StringRepeat
StringRepeat["str", n] creates a string consisting of "str" repeated n times.
StringRepeat["str", n, max] limits the result to at most max characters.
Examples
Repeat a string:
StringRepeat["ab", 5]
(* "ababababab" *)With maximum length:
StringRepeat["hello", 10, 20]
(* "hellohellohelloHello" *)Please visit the official Wolfram Language Reference for more details.