Text this: Gravitational index of the heterotic string