added CopyString and added size check for tobString_Copy