Removed some redundant code from tstring.cpp by replacing with standard functions.