debug method of get tags string