I use OS X 10.6.5, Bash.
When I run this:
echo $IP; echo of; echo $IPLINES
I get this output:
219.80.4.150:3128 of
It would appear that there is a carriage return (\r) at the end of $IP.
\r
$IP