I think splitLine was better in this function.