Made variable type more explicit following change to implementation of CharEq's  method