Support longer strings with a loop