add toString method to tag and group