Quick question to string handling
<p>I’m pretty new to JavaScript, so I hope you could help me.</p>

<p>I have a top navigation menu with text on image buttons. When the text is just one word everything is fine. When it consists of two words I want to cut the string on the space character and put the second word into the second line.</p>

<p>I know I can find the character with the indexof method. But how would I go from there?</p>

<p>Thanks</p>
