Remove extra space from exception.