Sub string problem. (Reused)