converting the tags into an array.