scanner produces newline and space