public void setInput (ArrayList<String> val) {
        if(val == null){
            this.input = new ArrayList<String>();
            return;
        }
        if(val.size() == 0)
            this.input = val;
        else
            for(String s:val)
                addToInput(s);
    }