StrinBuffer now can work both with and without memory context