Detect space

Maybe try this instead:

arr[i] == ' '
2 Likes