Trim headerRecord

Trim white space for header records, to cope with header like:
header1,  header2,  header3