Stop using String.repeat since it's deprecated