Overloads the toString method and allows you to filter out particular properties