Well, ideally ae - as = 0 and be - bs = 0 here.  That's the only way that we know we checked every character.  Thing is, this expression is an odd way to say it.

Wouldn't

  return as == ae && bs == be;

Be a more direct way  to say that we must have evaluated every character in both ranges?