code: public static final String normalizePath(String path) {
  		String normalizedPath = path.replaceAll("//", JawrConstant.URL_SEPARATOR);
  		StringTokenizer tk = new StringTokenizer(normalizedPath, JawrConstant.URL_SEPARATOR);
  		StringBuilder sb = new StringBuilder();
  		while (tk.hasMoreTokens()) {
  			sb.append(tk.nextToken());
  			if (tk.hasMoreTokens())
  				sb.append(JawrConstant.URL_SEPARATOR);
  		}
  		return sb.toString();
  
  	}
docs: Removes leading and trailing separators from a path, and removes double
  separators (// is replaced by /).
  
  @param path
  the path to normalize
  @return the normalized path