code: protected void processInput(String input) {
          String command = input.trim();
          if (!command.isEmpty()) {
              runCommand(command);
          }
      }
docs: Process an input line entered through the console.
  
  <p>The default implementation trims leading and trailing whitespace
  from the input and skips execution if the command is empty.</p>
  
  @param input The input line