for !charrange, it had to be ifgt, not ifge.