createWithFormat strange bug

On Android this code:

int nLevel = 7;
string bgFilename = CCString::createWithFormat("location_background_%d.png", nLevel)->getCString();

Returns this value:

location_background7.png

why?