Added tstring methods and tests