Revert "Revert "Added StringUtil, and update java doc. ""

This reverts commit b55d26b5de38ff73f1d9d3fc42a43e8d3412bd00.