Here you can find the source of unquoteString(String s)
public static final String unquoteString(String s)
//package com.java2s; public class Main { public static final String unquoteString(String s) { if (s.charAt(0) == '\"') { if (s.charAt(s.length() - 1) == '\"') { return (s.substring(1, s.length() - 1)); }//from w ww.j a v a 2s . c om return (s.substring(1, s.length() - 0)); } if (s.charAt(s.length() - 1) == '\"') { return (s.substring(1, s.length() - 1)); } return (s); } }