create a toString method in TagCollection