{"action":"closed","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7610","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7610/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7610/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7610/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7610","id":141824028,"number":7610,"title":"Title Case A Sentence arrives at the correct result but fails ","user":{"login":"Plaskin87","id":16836540,"avatar_url":"https://avatars.githubusercontent.com/u/16836540?v=3","gravatar_id":"","url":"https://api.github.com/users/Plaskin87","html_url":"https://github.com/Plaskin87","followers_url":"https://api.github.com/users/Plaskin87/followers","following_url":"https://api.github.com/users/Plaskin87/following{/other_user}","gists_url":"https://api.github.com/users/Plaskin87/gists{/gist_id}","starred_url":"https://api.github.com/users/Plaskin87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plaskin87/subscriptions","organizations_url":"https://api.github.com/users/Plaskin87/orgs","repos_url":"https://api.github.com/users/Plaskin87/repos","events_url":"https://api.github.com/users/Plaskin87/events{/privacy}","received_events_url":"https://api.github.com/users/Plaskin87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T10:08:31Z","updated_at":"2016-03-18T10:33:35Z","closed_at":"2016-03-18T10:33:35Z","body":"Challenge [Title Case a Sentence](https://www.freecodecamp.com/challenges/title-case-a-sentence#?solution=function%20titleCase(str)%20%7B%0A%20str%20%3D%20str.toLowerCase().split(%22%20%22)%3B%0A%20%20%20%20var%20b%20%3D%22%22%20%3B%0A%20%20for(i%3D0%3Bi%3Cstr.length%3Bi%2B%2B)%7B%0A%20%20%20for(j%3D0%3Bj%3Cstr%5Bi%5D.length%3Bj%2B%2B)%7B%0A%20%20%20%20%20%0A%20%20%20%20if(str%5Bi%5D%5Bj%5D%20%3D%3D%3D%20str%5Bi%5D%5B0%5D)%20%7B%0A%20%20%20%20%20%20b%20%2B%3D%20str%5Bi%5D%5B0%5D.toUpperCase()%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%0A%20%20%20%20else%7B%0A%20%20%20%20%20%20b%20%2B%3Dstr%5Bi%5D%5Bj%5D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%7D%0A%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20b%2B%3D%20%22%20%22%3B%0A%20%20%7D%0A%20%20%20%20%20%0A%20%20return%20%20b%3B%0A%7D%0AtitleCase(%22HERE%20IS%20MY%20HANDLE%20HERE%20IS%20MY%20SPOUT%22)%3B) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nMy approach is not accepted. I know it's not the nicest solution but it works. \r\nOr is there an error I do not see?\r\n\r\n\r\nMy code:\r\n```javascript\r\nfunction titleCase(str) {\r\n str = str.toLowerCase().split(\" \");\r\n    var b =\"\" ;\r\n  for(i=0;i<str.length;i++){\r\n   for(j=0;j<str[i].length;j++){\r\n     \r\n    if(str[i][j] === str[i][0]) {\r\n      b += str[i][0].toUpperCase();\r\n      }\r\n     \r\n    else{\r\n      b +=str[i][j];\r\n      }\r\n   }\r\n    \r\n    \r\n    b+= \" \";\r\n  }\r\n     \r\n  return  b;\r\n}\r\ntitleCase(\"HERE IS MY HANDLE HERE IS MY SPOUT\");\r\n```\r\n<a href=\"http://www.bilder-upload.eu/upload/772b1d-1458296663.png\" target=\"_blank\"><img src=\"http://www.bilder-upload.eu/thumb/772b1d-1458296663.png\" border=\"1\" alt=\"Bilder-Upload.eu - share DEINE Bilder\" /></a>"}}