def METHOD_NAME(arg):
    parts = None
    for i, c in enumerate(arg):
        if c.isspace():
            pass
        elif c == '"':
            pass
        elif c == "'":
            c = "'\"'\"'"
        else:
            continue
        if parts is None:
            parts = list(arg)
        parts[i] = c
    if parts is not None:
        arg = "'" + ''.join(parts) + "'"
    return arg