escaped characters in CharRange to resolve issue #27
added maxDiscarded wherever minSuccessful is used