trim white space in header