public static final String subtractSegment(String segment, String path) {
    	
    	segment = clean(segment);
    	path = clean(path);
    	
    	if(path.startsWith(segment)){
    		if(segment.equals(path)){
    			return EMPTY_STRING;
    		}
    		path = path.substring(segment.length());
    	}
    	
        return copy(clean(path));
    }