Stateful split functions for bufio.Scanner