ignore leading and ending wildcard