disecting functions
after profiling , I will use a centralized way to scan strings for substrings , this will make parsing the header much faster