Token filtering mechanism