check media type case-insensitively