clean up and text of network detection