Edited getTheRestOfTheString and getFirstWord method