try catch in FormatWith