use tr instead of gsub when possible