Added length parameter do WriteString