Add new common function for handling directory string value
Merge pull request #34 from MengZhang/develop

Add new common function for handling directory string value