Fixes to Memory and Return in String readWrite