toc: adds space between commands.
algorithm: removes unnecessary whitespace.