Here you can find the source of dequote(String str)
static String dequote(String str)
//package com.java2s; /*/*from ww w . j ava 2 s . c o m*/ * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public class Main { /** * Remove leading and tailing unescaped quotes; remove escaping from escaped internal quotes. */ static String dequote(String str) { str = str.replace("\\\"", "\""); if (str.startsWith("\"")) { str = str.substring(1); } if (str.endsWith("\"")) { str = str.substring(0, str.length() - 1); } return str; } }