Small refactoring of tstring.cpp
Merge pull request #139 from TsudaKageyu/refactor-string

Small refactoring of tstring.cpp