Debug text cleanup