firstWord 🌶️
Write a method that takes one String parameter, s, and returns everything in s up to (but not including) the first space. For example, firstWord("hello world") should return "hello". You may assume s always contains at least one space, and does not begin with one.
Is there a String method that tells you WHERE something is located? Check your quick reference.
Once you have that position, is there a method that gets you everything before it?