No, but I do not know of any implementation that by default allocates memory on the heap. However, some of them include what is called short string optimization (SSO), where they allocate some space as part of the string object itself, so if you don't need more than that length (it seems between 10 and 20 characters, usually) , it can generally avoid allocating a separate heap.
It is not standardized though.
Jerry Coffin
source share