Fix exception string format