Accept surrounding spaces in input for TOC (see #63)