Apply callback to the array.

Rather than doing replacements. tr() is wrong function
too; replace is faster than translate.