Fix reversed output variable

The output variable setting was reversed and now has been reset back in the charsLeftThreshold(input, thereshold, maxlength) function.