0.2.11: Improved clearChars function