Added a test for prefering the exact match before fuzzy matching.
Use a case statement.