Changed check for header line to use the safer startswith method.