massaging text into a list