When you say that the error occurs on the first space, what do you mean?

The lines look OK, and there should be no problem with embedded spaces.

The only thing that I can think off the top of my head is that you have an unbalanced (missing) quote character earlier in your script.