remove superfluous newlines and tabs