public static String findname(String line, String s){
	int index = line.toUpperCase().indexOf(s);
	int index2, i, j, k;
	String ret = "";	
	
	if (index > -1){
	    index=Math.max(line.indexOf("=", index),line.indexOf("[", index));
	    
	    if (index > -1){

		i=line.indexOf(">", index);
		if(i==-1)
		    i=line.length();
		j=line.indexOf(" ", index);
		if(j==-1)
		    j=line.length();
		k = line.indexOf("]", index);
		if(k==-1)
		    k=line.length();

	
		    

		index2 = Math.min(Math.min(i,j),k);
		if(line.charAt(index) == '[')
		    index2 = k;
		ret = line.substring(index+1, index2).trim();
		if (ret.startsWith("\"") || ret.startsWith("'"))
		    ret = ret.substring(1, ret.length()-1);
	
		return ret;
	    }
	    
	    
	}
	return "";
    }