Exerpad
Exercise 10 · Chapter: String ManipulationOptional+50 XP

Secret Message Decoder

Read a messy secret message. Clean it up by:

  1. Trimming extra spaces
  2. Replacing all * with spaces
  3. Converting to lowercase

Print the decoded message.

Example:

Input:

   HELLO*WORLD*FROM*JAVASCRIPT

Output:

hello world from javascript
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.