making trail headers case-insensitive