code: public static String clean(String path) {
  
  		path = path.replaceAll("//", "/");
  		return StringUtils.trimToNull(path);
  	}
docs: Removes double "//" if any ... and trims whitespace
  
  @param path to clean
  @return cleaned up path