trim the Error name