what if the input is "/a/b/c/"? should it return "c"?