so if I conclude all I write and use regexp which suits better here
```
ls = ls.map do |s|
  case s
  when /^inet addr:([^\t])/
    $1
  when /^inet6 addr:_([^\/])/
    $1
  else
    s
  end
```