check for exact match before matching on a prefix