added new code to insert the correct number of blank spaces in between data values and header fields