formatting the unsuccessful message string