you can use split funtion of String class which take regular expression. Don't use StringTokenizer class as it is deprecated now.
public String[] split(String regex)
String s = "001 LEE MARCUM, 002 DEE DOUGLAS , 003 KAVI TATE";
1.) String [] tokens = s.split(",");
2.) Loop through all the tokens and take out first three characters using String.substring(0,3) and add them in a StringBuilder object and also apppend character (,) after that and this will give you modified string which will have employee Ids onlyl.
Please refers these api docs at sun website.
java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#split(java.lang.String)
java.sun.com/j2se/1.4.2/docs/api/java/ut...gex/Pattern.html#sum