Get element's properties as string (for debug purposes)

A small method which creates a string of an element's properties,
This method is useful for debug purposes.