Make header detection case insensitive