code: static String stripLeadingSlash(String path) {
          if (path.endsWith("/")) {
              return path.substring(0, path.length() - 1);
          } else {
              return path;
          }
      }
docs: Removes the leading slash in the given path.
  
  @param path the path
  @return the new path