Make source_type checker case insensitive