Text Similarity Comparator (Java)