Using String Methods: upcase, downcase, strip
📖 Scenario: You work at a small online store. Customers enter their names and messages, but sometimes they add extra spaces or use different letter cases. You want to clean up their input before saving it.
🎯 Goal: You will write a Ruby program that takes a customer's name and message, removes extra spaces, and changes the text to uppercase or lowercase as needed.
📋 What You'll Learn
Create variables with exact names and values as instructed
Use the Ruby string methods
upcase, downcase, and stripPrint the final cleaned and formatted strings exactly as shown
💡 Why This Matters
🌍 Real World
Cleaning and formatting user input is important in many apps to keep data consistent and easy to read.
💼 Career
Knowing how to manipulate strings is a basic skill for programming jobs, especially in web development and data processing.
Progress0 / 4 steps