Partially implemented string functions.
Rough CriticalSection work.