Moved Wi-Fi name extraction into a separate method and added test to verify all network names are being extracted
Removed redundant ToString