assign unique tag id to empty string