replace tab by space
update GetNetState() implement