# length of (apple) — Scratch Block Guide > Returns the total number of characters (including spaces) in a string. How to use the "length of (apple)" block in Scratch 3.0 (Operators Blocks): clear explanation, working block example, and debugging tips. ## What this block does Returns the total number of characters (including spaces) in a string. Loop through every letter of a word for typewriter dialogue or digit counters. - Category: Operators Blocks - Key tip: Pairs naturally with "letter (i) of (text)" inside a repeat loop. ## Working Scratch example Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it. **Example using length of (apple)** - When green flag clicked - Say (length of (Scratch)) for (2) seconds Try it: Outputs 7. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Operators Blocks](/en/dictionary/operators/): See the overview and patterns for Operators Blocks. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/operators/length-mod/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)