Variables loaded from PHP have extra space?

I am not sure why it is doing it, but I don’t want the extra space.

Inside the php file, I have this:

echo "t=tobaltambulant";
echo "&ip=".$ip;

When I loadVariables() from the php file, then set the dynamic text field to display:

"Hey, the var is " + t + "."
//output: Hey, the var is tobaltambulant.

Thats what I want, but when I try it with the txt variable:

"Hey, the var is " + ip + "."
//output : Hey, the var is [ip variable here]

.

Why do I get that carriage return added in? Better yet, how can I prevent/get rid of it?