code: public static String normalizePath(String path) {
          String normalizedPath = path;
          if (normalizedPath != null) {
              if (isWindows) {
                  normalizedPath = normalizedPath.replaceAll("\\\\", "/");
              }
  
              normalizedPath = StringUtils.strip(normalizedPath.trim(), "/");
          }
  
          return normalizedPath;
      }
docs: Replaces a string's OS-dependant file path-separator characters (File.separator) with '/', and also strips
  any slashes from the beginning and end of the string. This allows us to do path operations using the standard
  forward slash, bypassing any potential regex-related issues, and also makes it easy to split a path into its
  exact parts.
  
  @param path The path to normalize
  @return the normalized path