Problem

Return a new String with all space characters removed.

Examples

  • removeSpaces("a b c") -> "abc"
  • removeSpaces(" hi ") -> "hi"
Compile and test (Ctrl+Enter)