remove superfluous newlines from fscanf
remove extra line