I You are looking to just replace a specific char with a different char then tr works and is more effcient This node
shows a benchmark comparision of the two methods.
points out below my benchmark was bit off. I re-ran it using the actuall functions needed for this problem and got these results
Benchmark: timing 500000 iterations of Method One TR, Method Two s...
Method One TR: 2 wallclock secs ( 1.87 usr + 0.00 sys = 1.87 CPU) @
+ 267379.68/s (n=500000)
Method Two s: 5 wallclock secs ( 4.84 usr + 0.00 sys = 4.84 CPU) @
For more details click these nodes
and see the discussion.