private static boolean compareDistance ( final String title1 , final String title2 , int distance ) { return StringUtils . getLevenshteinDistance ( title1 , title2 ) <= distance ; }
Compare the Levenshtein Distance between the two strings