How to show just the first word

I have a bd field which returns, let’s say Joe Bloggs
How would it just to show Joe on inner text ?

dmx-text="'Joe Bloggs'.split(' ')[0]"

2 Likes