if ((cmdStr != null) && (!(cmdStr.equals(""))) && (!(cmdStr.equals(" ")))) {
if ((cmdStr != null) && !(cmdStr.equals("NULL")) && (!(cmdStr.equals(""))) && (!(cmdStr.equals(" ")))) {
   private String[] createCmd(String[] cmdGeneral, String cmdStr, Vector attributes) {      String[] cmd = null;      try {         if (attributes == null) {            attributes = new Vector();            attributes.add("");         }         int additionalParam = 3;         int i = 0;         cmd = new String[attributes.size() + additionalParam];         //Cleaning empty args in the array         if ((cmdGeneral[0] != null) && (!(cmdGeneral[0].equals(""))) && (!(cmdGeneral[0].equals(" ")))) {            cmd[i++] = cmdGeneral[0];         }         if ((cmdGeneral[1] != null) && (!(cmdGeneral[1].equals(""))) && (!(cmdGeneral[1].equals(" ")))) {            cmd[i++] = cmdGeneral[1];         }         if ((cmdStr != null) && (!(cmdStr.equals(""))) && (!(cmdStr.equals(" ")))) {            cmd[i++] = cmdStr;         }         if (!attributes.isEmpty()) {            attributes.trimToSize();            Iterator iter = attributes.iterator();            while (iter.hasNext()) {               String temp = (String)iter.next();               if ((temp != null) && (!(temp.equals(""))) && (!(temp.equals(" ")))) {                  cmd[i++] = temp;               }            }            //end envProp         }         //Cleaning end empty args         String[] result = new String[i];         for (int j = 0; j < i; j++) {            result[j] = cmd[j];         }         cmd = result;         log("CreatedCmd:" + arrayToString(cmd), 5);      } catch (Exception e) {         log("SFRunCommand.createCmd:Error creating Cmd.(" + e.getMessage() + ")", 5);         e.printStackTrace();      }      return cmd;   }