case insensitive modality matching