solved TOANDFRO very nice question on string manipulation