stop making a new string in a tight loop