Also:

    irb> " hello\t world".strip.squeeze
    => "helo\t world"

Note the missing ``l``.