Small refactoring of tstring.cpp

Slightly reduced memory re-allocations and copies.