remove excessive newlines