Here you can find the source of unquote(final String s)
public static String unquote(final String s)
//package com.java2s; /*//from w w w . jav a 2 s . c o m * @author Fabio Zadrozny * Created: June 2005 * License: Common Public License v1.0 */ public class Main { public static String unquote(final String s) { final int length = s.length(); if (length > 2 && s.charAt(0) == '\'' && s.charAt(length - 1) == '\'') { return s.substring(1, length - 1); } return s; } }