new function to anonymize tickets