so I have been trying to convert an object value to string array. basically I'm using stringtokenizer to get the strings from a text file, so I can search for specific values. I am using this library first time. so any help wold be appreciated. here is my main method
 public static void main(String[] args) {
        String[] keys = {"she","sells","sea","shells","by","the","sea","shore"};      
        In in = new In("Protein.txt");
        TST<Integer> st = new TST<Integer>();
        String text1;
        String string = "";
        String [] line1;
        while ((text1 = in.readLine()) != null) {
           String line = text1.trim();
           //System.out.println(line);
           StringTokenizer stt = new StringTokenizer(line);
           while (stt.hasMoreElements()) {
               //System.out.println(stt.nextElement());
               string = String.valueOf(stt.nextElement());
               //line1 = string.split("");
               System.out.println(string);              
           }    
        }
    }
}