Modify the regex for quit. Delete blank lines.