convert term to string to prevent errors on numerical values