add method to StringTool