generates the list of possible string to match, doesn't actually match though