private void newChannelGroup(String args[]){
		int i = 2;
		String name = "";
		if(args[i].startsWith("\"")){
			while(!args[i].endsWith("\"") && i < args.length-1){
				if(!name.isEmpty())
					name += " ";
				name += args[i];
				i++;
			}
			if(!name.isEmpty())
				name += " ";
			name += args[i];
			i++;
			
			name=name.substring(1, name.length()-1);
			
			
			if(args[i-1].endsWith("\"")){
				if(args.length == i){
					ctrl.newChannelGroup(name, 0);
				}
				else if(args.length == i+1)
					try{
						long parentId = Long.parseLong(args[i]);
						ctrl.newChannelGroup(name, parentId);
					}
					catch(NumberFormatException e){
						 System.out.println("Argument "+i+" NaN.");
					}
			}
			else
				System.out.println("Invalid name for channelgroup. Has to be between quotes \"\".");
		}
		else
			System.out.println("Invalid name for channelgroup. Has to be between quotes \"\".");
	}