StringUtils gem repo
StringUtils is a library that allows various string manipulation
Usage:
$ gem install string_utils
In your project:
require 'string_utils'
StringUtils.truncate("hello world", 10, "...") #=> "hello..."
StringUtils.normalize_name "\302\240 Gran Via/Avda.de Asturias " #=> :Gran Via / Avda. de Asturias"