Change constructor and toString() according to element type change