Calculate String Length counts the characters in your text, including spaces, punctuation and line breaks, the same way JavaScript's length does. "Hello World" is 11. Emoji and some rare characters count as 2 because they use two UTF-16 code units.