The following code would remove enclosing quotes from Java Strings
s = s.replaceAll("(^\")|(\"$)","");
With this regular expression, if Java sees an opening double quote (^\”) or | a closing double quote (\”$) then it replaces them with nothing “”.