void checkStringArray(String msg, String[] strs, String[] check) {
    boolean dontMatch = false;
    if (strs.length != check.length) {
      dontMatch = true;
    } else {
      for (int i = 0; i < strs.length; i++) {
        if (!strs[i].equals(check[i])) {
          dontMatch = true;
          break;
        }
      }
    }
    if (dontMatch) {
      System.out.println(msg);
      System.out.print("Expected: ");
      for (int i = 0; i < check.length; i++) {
        System.out.print("'" + check[i] + "'");
        if (i < check.length - 1) {
          System.out.print(" ");
        }
      }
      System.out.println("");
      System.out.print("Got: ");
      for (int i = 0; i < strs.length; i++) {
        System.out.print("'" + strs[i] + "'");
        if (i < strs.length - 1) {
          System.out.print(" ");
        }
      }
      System.out.println("");
      System.exit(1);
    }
  }