Check Data quality $1.00 / 1,000 calls

String length is equal

What this tool does

This tool checks if the number of characters in your text matches a specific number you provide. It is designed for verifying that input data meets exact length requirements before it is processed further. This helps ensure consistency in forms or data collections.

When to use it

  • Verifying that a user input code has exactly the required number of characters.
  • Checking if a short bio or comment fits a specific character count limit.
  • Ensuring that a reference number entered by hand matches the expected length.
  • Validating that a fixed-format identifier contains the correct number of digits.

What to expect

You will receive a clear yes or no answer indicating whether the text length matches your target number. No additional details or complex breakdowns are provided.

Limitations

  • The check is based purely on character count and does not assess the content or meaning of the text.
  • It treats all characters equally, including spaces and punctuation, which might not match business expectations.
  • The tool cannot validate the format or type of characters, only their quantity.

When it fails

  • The result is no if the text length does not equal the specified number.
  • The check may fail silently if the input text is completely empty and the target length is not zero.

Good to know

  • Spaces and special symbols count as characters, so include them in your mental count.
  • If you expect a zero-length text, ensure the target length is set to zero.

Input data

Parameter Required Example Description
text Yes test Enter the exact text you want to check. For example, 'test'.
length Yes 4 Enter the number of characters you expect the text to have. For example, '4' for the word 'test'.

Output data

Field Description
result Returns true if the text length matches the number you provided, or false otherwise. For example, if you enter 'test' and check for length 4, the result is true.