Remove unneeded code from a function

Reduced the amount of code in the charsLeftThreshold(input, thereshold, maxlength) function. The code was resetting an already guaranteed true variable unnecessarily. 

I have removed that code and changed it so that there is only one if statement if it should be false.