Trim newlines and leading whitespace from titles.