title: How to determine if a string contains a sequence of repeated letters
body: <p>Using JavaScript, I need to check if a given string contains a sequence of repeated letters, like this:</p>
  
  <blockquote>
    <p>"aaaaa"</p>
  </blockquote>
  
  <p>How can I do that?</p>