Here you can find the source of deQuote(String quotedString)
private static String deQuote(String quotedString)
//package com.java2s; /*/*w ww . ja va 2 s. c o m*/ * Copyright (c) 2012-2014 synapticloop. * All rights reserved. * * This source code and any derived binaries are covered by the terms and * conditions of the Licence agreement ("the Licence"). You may not use this * source code or any derived binaries except in compliance with the Licence. * A copy of the Licence is available in the file named LICENCE shipped with * this source code or binaries. * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * Licence for the specific language governing permissions and limitations * under the Licence. */ public class Main { private static String deQuote(String quotedString) { if (quotedString.startsWith("'") && quotedString.endsWith("'")) { return (quotedString.substring(1, quotedString.length() - 1)); } return (quotedString); } }