For a String, length() returns an int (number of characters).
✅ Not a String.
Returns the character (char) at a given index.
✅ Not a String.
Returns a new String with characters replaced.
✅ This one returns a String.
Returns the int index of the substring (or -1 if not found).
✅ Not a String.