# File lib/jcode.rb, line 147
  def tr(from, to)
    (str = self.dup).tr!(from, to) or str
  end