Adjust buffer sizes
Allocate memory in create_toc_string() and allow to pass a string separator.