Repeat strings efficiently