Nice.  Please to change the name of this class to StringTools.   One of the sins of ElasticSearch is it has copies of it's dependent classes, with the same names, which makes is easy for users to inadvertently include the wrong one.