Shell syntax (redirection operators, pipes, etc) are parsed before word expansion, so your output redirection is being passed as arguments to tshark
.
STRING2="tshark -r <path of output.pcap> -T fields -e frame.number -E header=y"
echo $STRING2
$STRING2 > <path of output.csv>