How to use split()
<p>Here are the strings like this</p>

<pre><code>var a = ".fontlist-1 .fontlist-2";
var b = ".fontlist-1 .fontlist-3";
var c = ".fontlist-1 .fontlist-4";
</code></pre>

<p>What I need is how can I use the split() method and get only the second word in the string. For the above strings, I need only the second words( ie., .fontlist-2, .fontlist-3, .fontlist-4). How can I split and get that word? If you need any more information, I can give you.</p>

<p>One more thing.
At some situation, If I have string like this.</p>

<pre><code>var a = ".fontlist-1"
</code></pre>

<p>Your code must give me the .fontlist-1 word then. Will it be possible?</p>

<p>Could anyone guide me? Thanks!</p>
