Replicates a character n number of times and returns a string