str() method added to component