use tr on ruby string and tree based nav railscast