How do I remove the last n characters from a string?
<p>If I have a string and want to remove the last 4 characters of it, how do I do that?</p>

<p>So if I want to remove <code>.bmp</code> from <code>Forest.bmp</code> to make it just <code>Forest</code>
How do I do that? Thanks.</p>
