function checking string of characters and changing them
<p>im looking for a loop that will check a string of characters for capital letters using </p>

<pre><code>function isUpperCase(aCharacter)
{
    return (aCharacter &gt;= 'A') &amp;&amp; (aCharacter &lt;= 'Z');
}
</code></pre>

<p>When the capital letter is encountered it will carry out anoter function, let's call it <code>'dummyFunction'</code>, which will change all letters to same letter as the capital letter but only until next capital letter is encountered and so on.(I hope you will understand what i mean) For example, if I would have a string 'AbcdeFghijKlmno' the outcome of the program would be: 'AAAAAFFFFFKKKKK'. Any ideas?</p>
