This question has already been answered:
I get the String entered from the keyboard, it can contain several words and different number of spaces between them. I need to return the same string only every word with a capital letter. The number of spaces and not literals between words should remain too. I read about the substring , I understand I need to organize a beautiful rehex?