CJCoding With Joseph
15per day

Trim Whitespace

A string with surrounding spaces is given. Print it with the leading and trailing spaces removed using .Trim().

For "  hi  " the program prints 'hi' (no surrounding spaces).

Expected Output:

hi
Topics:
Strings
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.