Its either you are using legacy expression engine, or old CC version.
Anyways, try longer expression as below.
1. Apply expression to text’s source.
2. Add any text you want into text layer.
3. Change ‘num’ variable to adjust how many copies to make.
phrase = text.sourceText;
num = 5;
repeatString(phrase, num)
function repeatString(string, repeats) {
newString = "";
while (repeats > 0) {
newString += string;
repeats--;
}
return newString;
}
Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Social Media Profiles