def SplitVariableAndValue(string,sep='='):
    """ Return variable name nad value in string, i.e. 'var=value'.
    
    :param str string: string data
    :return: varnam(str) - variable name
    :return: varvasl(str) - value
    """
    var=''; val=''
    ns=string.find(sep)
    if ns >= 0:
        varval=string.split(sep)
        var=varval[0].strip()
        try: val=varval[1].strip()
        except: val=''
    return var,val