example9 avoid duplicate scanner.Text() call [alloc]