code: static String replaceSlashes(final String target) {
  		String replaced = target;
  		if (replaced != null) {
  			replaced = replaced.replaceAll("/+", "/");
  		}
  		return replaced;
  	}
docs: Replaces multiple subsequent slashes with one slash. E.g. ////a//path//
  will becaome /a/path/
  
  @param target target sring to be replaced
  @return a string where the subsequent slashes are replaced with one slash