Correctly handle header of different cases