update directory string