StringUtil library for javascript