Remove extra lines of text