}else if(((char)i)=='\n' || ((char)i)=='\r'){
if(!sb.toString().equals("")){
StringTokenizer st=new StringTokenizer(sb.toString());
String key=(String)st.nextElement();
String value=(String)st.nextElement();
IAtomContainer mol = sp.parseSmiles(value);
//for some reason, smilesparser sets valencies, which we don't want in jcp
for(int k=0;k<mol.getAtomCount();k++){
mol.getAtom(k).setValency(null);
}
funcgroupsmap.put(key, mol);