Updated state regex to match directions