newline insensitive grid compare