cleanup exception text