Add a method to auto-format messages