add str-operation related function in a single file

把字符串相关的提出来成为一个模块