adding method to get tag string without original text