code: public static String removeBrackets( String condition ){
          String value = StringUtils.strip( condition );
          if( value != null && value.length() >= 3 ){
              return value.substring( 2, value.length() - 1 );
          }
          return value;
      }
docs: After trimming the input, removes two characters from the start and one from the end and returns the result.