import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;
class Ideone
{
{
String input_str
= "\"'some string'\""; String result
= input_str.
replaceAll("^[\"']+|[\"']+$",
""); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguKjsKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZyBpbnB1dF9zdHIgPSAiXCInc29tZSBzdHJpbmcnXCIiOwoJCVN0cmluZyByZXN1bHQgPSBpbnB1dF9zdHIucmVwbGFjZUFsbCgiXltcIiddK3xbXCInXSskIiwgIiIpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihyZXN1bHQpOwoJfQp9