simplify splitting buffer into headers and information elements
remove extra 0 from string