Ah good thanks again, I am starting to regret using the string class in my program . I should have used a 2D character array: