move string utils from core to editor-ui
implement simple unserialize
split codes into separate files