Change the return type for string matches to be the array of parts

To allow for efficient use of the matched string later, return the array of parts when a string matches the wildcard expression.