Fix light parsing in certain maps

Apparently sometimes there are extra spaces between the components.
Trim those before attempting to split the string.

It might be cleaner to do this whole thing in a regex in the future.