validate{Pattern,Format} should accept strings only