extra space added to end of line