Auto calculate the number of chars left