Convert term to string to prevent string interpolation failing.
Only apply equality checks on the root term, no subterms.