added code to handle spectral type because it is a two-part value; previously my code only recorded the first part but dropped the second part