Add function to parse series names