public static boolean clearCmd(String strCmd, StrideTrie trie){

        try{

            if( strCmd.isEmpty() ) return false;
            String[] strs = strCmd.split("\\s+");
            if( strs[0].compareTo("clear")!=0 ) return false;

            int[] steps = null;
            if( strs.length>1 ){
                steps = new int[strs.length-1];
                for(int i=0;i<steps.length;i++) steps[i] = Integer.parseInt(strs[i+1]);
            }

            FixNode.deReferenceAll(trie.m_root);
            trie.init(steps);

            System.out.println("Total entries is : " + trie.m_total);

        }catch (Exception ex){
            System.out.println(strCmd + " failed!");
            //ex.printStackTrace();
            return false;
        }
        return true;

    }