Spectral indices in cooling flow galaxies: evidence of star formation