function formatString(text, columnSize) {
		var formatted = "",
			text = text || "";

		// Set default.
		if (!columnSize) {
			columnSize = 50;
		}

		// Clear new line characters and double quotes to avoid bad formatting.
		formatted = text.replace(/(\r\n|\n|\r)/gm, " ").replace(/(\")/gm, "");

		if (formatted.length > columnSize) {
			formatted = formatted.substring(0, columnSize - 3) + "...";
		} else {
			while (formatted.length < columnSize) {
				formatted += " ";
			}
		}

		return formatted;
	}
Formats the analysis history in a single string.