Instead use operator +=
ImgType[i] += Img[i].at(g);
I've tries that and ImgType[i].append(&Img[i].at(g));
Both give errors of semantic types. Reads in console aborted terminate called after throwing an instance of std::out_of_range
What(): basic_string::at
That means Img[i] is shorter than g characters.
Yeah that's what I thought. Thanks