Replacing the action string with token and right values.