change useless gsub to tr