In ruby, one can write multiple codes to remove multiple blank spaces inside strings (sentenses)
"Write your string here ".squeeze.strip "This is my input string ".gsub(/ +/, ' ') "Write your string here ".split(' ').join(' ')
Recent Posts |
Followers |
|
© 2009-2010 FunOnRailsDesigned by Woork