TStr substring functions