i see. i meant if the path is "/a/b/c///", we will change it to be "/a/b/c", and then add the rest.