Title Case a Sentence " " space help

Hi!

Appreciate any help solving this problem spent some time to would prefer to just alter
this solution.

Code works well. EXCEPT it add an unnessary space at the end of my sentence.

ANY ideas to get rid of this?

Hello Abdifatah25,

You are concatenating a space for ever pass of the loop. One way to avoid the final space is to check if the variable i points to the last word in the array.

Hello midensors

Thank you solved this with and if statement.

Fantastic!

Happy coding.

join(' ') will also work. Better readability, not sure about performance.