does that second part of your code return a nickname after the /whois command in its original format?