That probably is because the method send only takes a const char* as argument and not a std::string. Try:
uBit.serial.send(result.c_str());
edit:
Now your code has changed and result is a stringstream:
uBit.serial.send(result.str().c_str()).
8
solved Why argument accept “text” but not string variable? [closed]