Standard LibraryTypesstringMethodsreplicateOn this pagereplicate Method of string. replicate(integer n) -> string Replicates the container n times. Parameters n: The number of times to replicate the container.