remove unnecessary toString from error detail