StringRepeat

WMA link


StringRepeat["string", n]

gives string repeated n times.

StringRepeat["string", n, max]

gives string repeated n times, but not more than max characters.

StringContainsQ
String