New function MatchCaseInsensitiveList() to check list of patterns