Change `gsub` to `tr` where possible