Here you can find the source of unquote(String s)
public static String unquote(String s)
//package com.java2s; public class Main { /** Remove single or double quotes. *//*from ww w . j a v a2 s.c o m*/ public static String unquote(String s) { if ((s.startsWith("\"") && s.endsWith("\"")) || (s.startsWith("'") && s.endsWith("'"))) s = s.substring(1, s.length() - 1); return s; } }