public TSLWriter putString(String name,String value) throws IOException
  {
    if(value == null)
    {
      return this;
    }
    TSLUtil.validateValueName(name);

    if(closed)
    {
      throw new IllegalStateException(ERROR_ROOTCLOSED);
    }
    if(root_element)
    {
      closed = true;
    }
    writeSeparator(true);

    osw.write(name);
    osw.write(" \"");
    osw.write(encodeValue(value));
    osw.write('"');
    
    first_element = false;
    return this;
  }