Stop using String.repeat since it's deprecated

This gets rid of lotsa warnings