The original script below will only show the first part of your SSID if you have spaces: (Below)
/sbin/iwconfig wlan0 | grep ‘SSID:"’ | awk ‘{print $4}’ | cut -d" -f2;
If you remove the double quote from the grep and remove the awk altogether it will show your entire SSID.
/sbin/iwconfig wlan0 | grep ‘SSID:’ | cut -d" -f2;
There is a caveat to this though, if the name is really long it will not display correctly on the LCD… so maybe this was all by design :). Just thought I would put it out there if anyone was curious. In retrospect I should have never put spaces in my SSID and have known better.