Here you can find the source of unquote(String in)
public static String unquote(String in)
//package com.java2s; //License from project: Open Source License public class Main { public static String unquote(String in) { if (isEmpty(in)) return in; while (in.startsWith("\"") || in.startsWith("'")) in = in.substring(1);//from w w w . j a va 2 s . c om while (in.endsWith("\"") || in.endsWith("'")) in = in.substring(0, in.length() - 1); return in; } public static boolean isEmpty(CharSequence cs) { return cs == null || cs.length() == 0; } public static boolean isEmpty(Object[] o) { return o == null || o.length == 0; } }