Added Trim to headerRecords

Remove white space around headerRecords to cater for the following
example: header1,   header2,  header3