Appearance
The string should be in directory path format.
/
/a/
/a/b/c/d/e/f/
//
../
/a
/x/a/../../../