Handled null pointer exceptions in stringUtil.java file.
Merge pull request #941 from chandrasekharv/dev-branch

Handled null pointer exceptions in stringUtil.java file.