private static String trim(String text)
	{
		String result = text;

		if (text != null && text.length() > 0)
		{
			int start = 0;
			int end = text.length();
			char firstChar = text.charAt(start);
			char lastChar = text.charAt(end - 1);

			if (firstChar == lastChar)
			{
				if (firstChar == '\'' || firstChar == '"')
				{
					start++;
				}
				if (lastChar == '\'' || lastChar == '"')
				{
					end--;
				}

				result = text.substring(start, end);
			}
		}

		return result;
	}