Wrap construction of header line string in a for loop
Create a loop structure for construction of the data lines