Implement metacharacter '?'.