Given the string
" hello " return the string
"hello".
ruby puts " hello ".strip
puts " hello ".strip
ruby " hello ".strip!
" hello ".strip!
Submit a new solution for
ruby
There are 20 other solutions in
additional languages (
clojure,
cpp,
csharp,
erlang ...)