Remove extra [:digit:] from tr command