private String getFirstCmd(String cmd, int length) {
    return cmd.substring(length).trim();
  }
Extract and clean up the first command in the input.
beeline/src/java/org/apache/hive/beeline/Commands.java