update string and tag