Inappropriate value for attribute "address_prefixes": list of string required

Hello experts,
I am using count and list . Below is the error which I am getting. Kindly help

In main.tf

resource “azurerm_subnet” “web_server_subnet” {

name = “{var.resource_prefix}-{substr(var.web_server_subnets[count.index], 0, length(var.web_server_subnets[count.index])-3)}-subnet”

resource_group_name = azurerm_resource_group.web_server_rg.name

virtual_network_name = azurerm_virtual_network.web_server_vnet.name

address_prefixes = “var.web_server_subnets[count.index]”

count = “${length(var.web_server_subnets)}”

}

Error: Incorrect attribute value type

on main.tf line 45, in resource “azurerm_subnet” “web_server_subnet”:
45: address_prefixes = var.web_server_subnets[count.index]
|----------------
| count.index is 0
| var.web_server_subnets is list of string with 2 elements

Inappropriate value for attribute “address_prefixes”: list of string required.

Error: Incorrect attribute value type

on main.tf line 45, in resource “azurerm_subnet” “web_server_subnet”:
45: address_prefixes = var.web_server_subnets[count.index]
|----------------
| count.index is 1
| var.web_server_subnets is list of string with 2 elements

Inappropriate value for attribute “address_prefixes”: list of string required.

In Terraform.tfvars

web_server_location = “westus2”

web_server_rg = “web-rg”

resource_prefix = “web-server”

web_server_address_space = “1.0.0.0/22”

web_server_name = “web”

environment = “development”

web_server_count = 2

web_server_subnets = [“1.0.1.0/24”, “1.0.2.0/24”]