irb> "\t hello".gsub /\s+/, ' '
    => " hello"
    irb> "\t hello".squeeze
    => "\t helo"