 <p>The answers so far are all right, but i think you should do it differently for future use. Maybe your count will extend, so just search for the first occurence of "." and then cut the string there.</p> <pre><code>text = text.substring(text.indexOf(".")+1); </code></pre>