src/org/kocakosm/pitaya/util/Strings.java
public static String unquote(String str)
	{
		String unquoted = str;
		while (unquoted.startsWith("\"")) {
			unquoted = unquoted.substring(1);
		}
		while (unquoted.endsWith("\"")) {
			unquoted = unquoted.substring(0, unquoted.length() - 1);
		}
		return unquoted;
	}
public static String unquote(String str)
	{
		String unquoted = str;
		while (unquoted.startsWith("\"")) {
			unquoted = unquoted.substring(1);
		}
		while (unquoted.endsWith("\"")) {
			unquoted = unquoted.substring(0, unquoted.length() - 1);
		}
		return unquoted;
	}
Unquotes the given {@code String}, that is, this method removes any
leading or trailing double quotes. If the given {@code String} is not
quoted, returns it unmodified.

@param str the {@code String} to unquote.

@return the unquoted {@code String}.

@throws NullPointerException if {@code str} is {@code null}.