dex addString function refactor