process header information from string.