@staticmethod
def format_user_output(user_id, command_id, message_code, msg_str=None):
    """Formats a string to send to users."""
    msg_str = '' if msg_str is None else ' ' + msg_str
    return f'{user_id} {command_id:d} {message_code:s}{msg_str:s}'
