protected String removeQuotes ( String text ) { assert text != null ; if ( text . length ( ) > 2 ) { char first = text . charAt ( 0 ) ; // Need to remove these only if they are paired ... if ( first == ' ' || first == ' ' ) { int indexOfLast = text . length ( ) - 1 ; char last = text . charAt ( indexOfLast ) ; if ( last == first ) { text = text . substring ( 1 , indexOfLast ) ; } } } return text ; }
Remove any leading and trailing single - quotes or double - quotes from the supplied text .