Checking token replacement