src/org/kocakosm/pitaya/util/Strings.java
public static String quote(String str)
	{
		return new StringBuilder(str.length() + 2)
			.append("\"").append(unquote(str)).append("\"")
			.toString();
	}
public static String quote(String str)
	{
		return new StringBuilder(str.length() + 2)
			.append("\"").append(unquote(str)).append("\"")
			.toString();
	}
Quotes the given {@code String} with double quotes. If the given
{@code String} has multiple quotes, only one of them is kept.

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

@return the quoted {@code String}.

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