Replicates an input string n number of times