create the c++ betterbam object with a pointer to a string