You should probably add `^` at the beginning of `¬` if we're only checking it at the beginning.