recognizer: support patterns with spaces.