Fixing charClass looping conditions.