re-work title line parsing

Just push all the title lines onto a list and then join them.