BUT I do have a continued question....

So now that I can extract the first line of the Notes section.... I need to be able to handle a case where there's already a CODE=XXXXX on the first line. I would need to replaced CODE=XXXXX with the new CODE=YYYYY. So far I'm reading the Notes section in its entirety.

How can I remove/replace the first line (if CODE=XXX) exists and replace just that first line with CODE=YYYY?

Thanks