candidate A string to which the pattern string is compared. pattern A string on which a wildcard match is performed comparing the pattern to the candidate string.