what if "/a/b/c////"?

length() - 1