Added fuzzy matching for getTerms