Clean the lines in a seperate function.