code: public void setDatabits(String databits) {
          if (!ModbusUtil.isBlank(databits) && databits.matches("[0-9]+")) {
              this.databits = Integer.parseInt(databits);
          }
          else {
              this.databits = 8;
          }
      }
docs: Sets the number of data bits from the given <tt>String</tt>.
  
  @param databits the new number of data bits as <tt>String</tt>.