Added auto delete while the string length is greater than 10000