def getStrOutOfList(ls, separator=','):
    """
    #2013.2.24 bugfix
    2012.11.25 reverse of getListOutOfStr
    """
    if not ls:
        return ''
    firstElement = ls[0]
    if type(firstElement) != str:
        ls_str = map(str, ls)
    else:
        ls_str = ls
    return separator.join(ls_str)
