public static String trimSpaces(String text) {
		// Split the string into words:
		String[] splitText = seperateWords(text);

		// Make sure there are some words:
		if (splitText == null || splitText.length == 0)
			return "";

		// Seperate each word by a single space:
		String parsedText = splitText[0];
		for (int x = 1; x < splitText.length; x++) {
			parsedText = parsedText + " " + splitText[x];
		}

		// Return the result:
		return parsedText;
	}