revised isequal for tokens