Validator for exact length.