String removeQuotes ( String s ) { if ( s . startsWith ( "\"" ) && s . endsWith ( "\"" ) ) return s . substring ( 1 , s . length ( ) - 1 ) ; else return s ; }
Remove double quotes from around a string . If there s not both start and ending quotes does nothing .