Can you show what you want the end list to look like? And what its intended use is.
If all you want to do is compare the 0 index of spaces to the 0 index of the excel import, and when ==, replace 1 index of space with 1 index of excel import, that isn’t too hard and we can help you.
Something like this: