Cleanup and reformatting of lines.