added string helper function to help ensure DIRECTORY_HELPER consistency system-wide