move string utils from core to editor-ui