from typing import Union
from typing import Dict
from typing import List
import json


def dict_to_formatted_string(dictionary: Union[Dict, List]) -> str:
    """
    Return dictionary as clean string for war room output.

    Parameters
    ----------
    dictionary : dict | list
        The dictionary or list to format as a string.

    Returns
    -------
    str
        Clean string version of a dictionary

    Examples
    --------
    >>> example_dict = {'again': 'FsoD',
    ...                 'church': {'go': 'pArcB', 'month': '2009-08-11 16:42:51'},
    ...                 'production': 5507,
    ...                 'so': [9350, 'awzn', 7105, 'mMRxc']}
    >>> dict_to_formatted_string(example_dict)
    'again: FsoD, church: {go: pArcB, month: 2009-08-11 16:42:51}, production: 5507, so: [9350, awzn, 7105, mMRxc]'
    """
    return json.dumps(dictionary).lstrip('{').rstrip('}').replace('\'', '').replace('\"', '')