# Convert first letter of a string to uppercase

**URL:** <https://forum.kirupa.com/t/convert-first-letter-of-a-string-to-uppercase/222402>\
**Category:** flash\
**Created:** [April 13, 2007, 1:44am UTC](https://forum.kirupa.com/t/convert-first-letter-of-a-string-to-uppercase/222402 "2007-04-13T01:44:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thybalt](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@thybalt](https://forum.kirupa.com/u/thybalt)\
**Post date:** [April 13, 2007, 1:44am UTC](https://forum.kirupa.com/t/convert-first-letter-of-a-string-to-uppercase/222402/1 "2007-04-13T01:44:03Z")

</div>

Hi all,

When I use myString.toUpperCase(), the entire string becomes uppercase.  
How do I extract the first letter and convert only it to uppercase? Do I have to split and then concate? If so, can someone give me an inkling of how to do it?

tks a lot for your help!
