public static String removeQuotes ( String s ) { if ( s == null ) return null ; s = s . trim ( ) ; if ( s . startsWith ( "\"" ) ) s = s . substring ( 1 ) ; if ( s . endsWith ( "\"" ) ) s = s . substring ( 0 , s . length ( ) - 1 ) ; return s ; }
Removes any surrounding quotes from the specified string and returns a new string .