String#squish

今天发现 Rails 里有 squish 方法。

他其实是 先 squeeze(“ “) 再 strip.

而且,他还处理了 codepoint 为 160 的 Unicode 空格。