Chemical evolution of star clusters