title: First letter is capital letter
body: <p>Help, please, I'm programming in google Script and I'm not getting to do the following: Leave the first capital letter, eg.</p>
  
  <p>Only got together words using</p>
  
  <blockquote>
    <p>var pagename = projectname.replace (/ \ s / g,'');</p>
  </blockquote>
  
  <p>When pagename to get "my first project", it's got, myfirstproject, but I'd like that first letter is capital letter, that is, "Myfirstprocect with the letter m in capital letter, "M".</p>
  
  <p>But let missing the first letter is capital Letter . Could anyone help me?</p>
  
  <p>Thank you.</p>