Update of getListofMatches code to account of excluded characters where
needed.