Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String unquote(String s, String quote) { if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(quote)) { if (s.startsWith(quote) && s.endsWith(quote)) { return s.substring(1, s.length() - quote.length()); } } return s; } }