Text Manipulation in Ruby2