StringTest passes. Fixing problems with malloc