code: public static String parseString(String value)
     {
        if (value != null)
        {
           // Strip angle brackets if present
           if (!value.isEmpty() && value.charAt(0) == '<')
           {
              value = value.substring(1, value.length() - 1);
           }
  
           // Strip quotes if present
           if (!value.isEmpty() && value.charAt(0) == '"')
           {
              value = value.substring(1, value.length() - 1);
           }
        }
        return value;
     }
docs: Parse a string.
  
  @param value string representation
  @return String value