def argstocmd(args):
    newargs = []
    for arg in args:
        if ('"' in arg):
            arg = arg.replace('"', '""')
        if ((' ' in arg) or ('"' in arg)):
            arg = f'"{arg}"'
        newargs.append(arg)
    return ' '.join(newargs)
def argstocmd(args):
    newargs = []
    for arg in args:
        if ('"' in arg):
            arg = arg.replace('"', '')
        if ((' ' in arg) or ('"' in arg)):
            arg = f'"{arg}"'
        newargs.append(arg)
    return ' '.join(newargs)