package com.neopets;

public enum NeopetsURL {

  ROOT(""),
  INDEX("index.phtml"),
  LOGIN("login.phtml"),
  BANK("bank.phtml"),
  PROCESS_BANK("process_bank.phtml");

  private static final String BASE_URL = "http://www.neopets.com";

  private String path;

  NeopetsURL(String path) {
    this.path = path;
  }

  public String getPath() {
    return path;
  }

  public static String formURL(String path) {
    if (path.isEmpty()) {
      return BASE_URL;
    } else {
      return BASE_URL + "/" + path;
    }
  }

  public String toString() {
    return formURL(path);
  }

}

@@ -333,24 +333,86 @@
 getPath() %7B%0A
+    if (path.isEmpty()) %7B%0A      return INDEX.getPath();%0A    %7D%0A
     return p

Make root NeopetsURL enum return index path