@Override
    public String toString() {
        
        return "Active [activeNode=" + activeNode + ", activeIndex="
                + activeEdge + ", activeLength=" + activeLength + "]";
    }
Do validation of the tree by comparing all suffixes and their index at leaf node.
src/com/interview/suffixprefix/SuffixTree.java