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

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

Handled null pointer exceptions in stringUtil.java file