There is no left() in C++. There's (at least) three things you can do, from most to least expensive:
1. string.substr(0,18)=="dll$multiplefactor"
2. string.find("dll$multiplefactor")==0
3. partialCompare(string,0,"dll$multiplefactor")==1
Here's the definition of partialCompare():
1 2 3 4 5 6 7 8 9
template <typename T>
bool partialCompare(const std::basic_string<T> &A,size_t offset,const std::basic_string<T> &B){
if (A.size()-offset<B.size())
return 0;
for (size_t a=offset,b=0;b<B.size();a++,b++)
if (A[a]!=B[b])
return 0;
return 1;
}