Implement AllocString method for StringPool.