Dont't strip the part after std::string.

This fix the 2nd part of ROOT-6023 (where the array
part was forgotten)