How to use Split() by space (‘ ‘) accounting for single words

I am trying to do a simple split function by spaces

let name= ocrValue.split(' ')

The issue is some names may be one word while some may be 2 or more.
It obviously works for 2+ words but fails trying to split a string like ‘Smith’. How can I get a word word array for single names?

Thanks