how to get string from a line of strings?
<p>I have following string:</p>

<pre><code>"hw_core_detectionhook::Iocard const*"
</code></pre>

<p>I have to get only first part, i.e all text present before space, i.e I need the  <code>"hw_core_detectionhook::Iocard"</code> part only.</p>
