Trim headerRecord fields

Remove white space from header records. Takes care of cases where the
header record looks like: header1,   header2 ,  header3