Added capitalization and punctuation to formatMessage