in reply to split every second word
As to removing spaces, the following will do it:
my $str = "Bob "; $str =~ s/\s$//; # or s/ $//; print "|$str|\n"; [download]
If things get any worse, I'll have to ask you to stop helping me.