Remove junk and indent lines.