Change toc_levels from string to array