Add simple pattern matching for characters and sequences