private int findPosEnd(String label, int cursor) {
		int posEnd = label.indexOf('@', cursor);
		int posEndPrime = label.indexOf('.', cursor);
		if(posEnd == -1 || (posEndPrime < posEnd && posEndPrime != -1)) {
			posEnd = posEndPrime;
		}
		if(posEnd == -1) {
			posEnd = label.length();
		}
		else if(label.substring(posEnd-2).startsWith(".T") || label.substring(posEnd-2).startsWith("Tb")) {
			posEnd -= 2;
		}
		else if(label.charAt(posEnd-1)=='T' || label.charAt(posEnd-1)=='D') {
			posEnd -= 1;
		}
		return posEnd;
	}