180 first characters of a string ending with a word
<p>I need to shorten a string down..</p>

<p>Lets say we have a string with the length 500.</p>

<p>I only want the first part of it - <strong>max 180 characters</strong>, ending with the <strong>last word</strong> before reaching the 180. I don't want to cut the string short in the middle of a word.</p>

<p>How is this achived? it does not have to perform all that well.. it is something that happens a couple of times a day, not more.</p>
