Trim leading and trailing vertical *and* horizontal whitespace from notes.

Resolves #106.