Corrected memory contig string memory handling.