Created a unit test for the StringHelper.java functions.
Fixed bugs found int StringHelper.java as a result of unit tests