fixed string processing bug, added asserts to core data methods