Rename formatMessage to formatString