ruby replace blanks within string

if you have a string containing blank characters you get rid of them using this function
field.gsub("\s",'')

or if you are on ruby on rails 2.4 you can also use
field.delete("\s")