def cleanStr(str):
    """
    Do some cleaning, remove double spaces new lines, clean commas and others
    :param str:
    :return:
    """
    str = str.replace('\n', ' ')
    clean_space_from = ['( ', ' )', ', ', '[ ', ' ]']
    for str_to_replace in clean_space_from:
        actual = str_to_replace.replace(' ', '')
        str = str.replace(actual, str_to_replace)
    str = ' (' + str + ') '
    str = ' '.join(str.split())
    return str
