fix duplicated string editing