Today you will build and inspect text strings using string operators.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-11 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
| 🎯 I can | build and inspect text strings using string operators |
| 🧩 New blocks | 3 blocks |
| 📝 New words | 7 words |
| ⏱ Lesson time | ~40 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students forget to add a space inside the join block — words stick together (e.g., 'HelloAlex' instead of 'Hello Alex').
- Students may think letter positions start at 0 — clarify that in Scratch, position 1 is the FIRST character.
🎯 Differentiation
🐢 Struggling: Provide a printed strip of the word 'SCRATCH' with boxes around each letter, numbered 1-7. Students count positions with their finger before using the letter-of block.
🚀 Advanced: Challenge them to build a monogram: extract the first letter of the first name and first letter of the last name (two ask blocks), then join them together.
💡 During the lesson
- Warm-UpWrite "SCRATCH" on the board. Point to each letter and say its position number: S=1, C=2, R=3, A=4, T=5, C=6, H=7. Ask students: "What is the letter at position 3?" (R) Do two more examples with students' names. This physical warmup makes the abstract
letter () of ()block immediately intuitive. Pulling one letter out of a word is called extract 🪝. - Try ItRun each Try live on the projector before students touch computers. For Try 1, ask: "What will the cat say?" (HelloSam — with NO space before the name, because the greeting has no space!) Make a deliberate error first, then fix it — this pre-teaches the most common bug.
Each Try changes one thing. Ask: "What changed?" (Try 1 changes the greeting; Try 2 changes the position; Try 3 changes the word.) Students see how each operator works on its own and together. - PlanAsk: "Which script comes first — the ask, or the say?" (Ask first — answer must exist before we use it.) Have students sketch the steps on paper before touching the computer. This 2-minute sketch prevents the most common ordering errors.
- BuildStep 3 uses nested join — two join blocks, one inside the other. This is the hardest step. Slow down here: build the INNER join first (
length of (answer)+[ letters!]), then wrap the outer join around it. Walk the room at this step — many students will need individual help with the nesting.
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.