Here you can find the source of unquote(String str)
public static final String unquote(String str)
//package com.java2s; //License from project: Open Source License public class Main { public static final String unquote(String str) { if (str.length() >= 2) { if (str.startsWith("'") && str.endsWith("'")) { str = str.substring(1, str.length() - 1); } else if (str.startsWith("\"") && str.endsWith("\"")) { str = str.substring(1, str.length() - 1); }// w w w . java 2s . c o m } return str; } }