Implement tr///, add &Str.distance to make tr/// return according to spec.