Use trim() to strip whitespace from the end of header fields