Squeeze Out The Extra Space
April 30, 2015 ยท View on GitHub
Remove all the excess spaces from a string using the squeeze method:
> "this is a string".squeeze(' ')
=> "this is a string"
April 30, 2015 ยท View on GitHub
Remove all the excess spaces from a string using the squeeze method:
> "this is a string".squeeze(' ')
=> "this is a string"