It's not a big deal, but why not just tokenize `@headBuffer`, clear it, and then loop through the lines as an array?