Checks that a string’s length matches the given value.
Checks that a string’s length matches the given value. A value passes only when it has exactly the number of characters you specify, no more and no fewer. Use this to confirm that a value has a fixed, expected size, for example a country code that must be exactly two characters or a reference number that must be exactly five.