if ( strSysPath.at(0) == '"' ) { strSysPath = strSysPath.substr(strSysPath.find_first_not_of(" \t\"")); strSysPath = strSysPath.substr(0, strSysPath.find_first_of("\"")); } else strSysPath = strSysPath.substr(0, strSysPath.find_first_of(" "));