code: public static URI create(String input) {
          if (isFile(input) || isURL(input)) {
              return URI.create(input);
          } else {
              return Paths.get(input).toUri();
          }
      }
docs: Creates a URI from a String representation of a URI or a Path.
  
  @param input String representation of a URI or a Path.
  @return the URI