Use bufio.Reader instead of Scanner.