Here you can find the source of unquote(String text)
public static String unquote(String text)
//package com.java2s; public class Main { private static final char SINGLE_QUOTE = '\''; public static String unquote(String text) { if (text.length() > 0 && text.charAt(0) == SINGLE_QUOTE && text.charAt(text.length() - 1) == SINGLE_QUOTE) { return text.substring(1, text.length() - 1); }/*from w ww . ja va 2 s . com*/ return text; } }