Updated both index.php and the logic part of the file. Included the first-letter-capital logic