Add toString to component