You can use the find function on this page String function calls
For example, find('John Smith', ' ')