oerliString repeat

Repeat a string up to 5000 times with an optional separator between copies.

Output
nananananananana