Basically all I'm after is to be able to format a String that is inputted by the user:
For example:
My code would look something like this:
I want to format the user input to something like this:
USER ENTERS John Smith
OUTPUT: J Smith
USER ENTERS: John Paul Smith
OUTPUT: J Smith
USER ENTERS John Paul-Smith
OUTPUT: J Smith
How would I go about doing this?