String lower = Name.toLowerCase();
int a = Name.indexOf(\" \",0);
String first = lower.substring(0, a);
String last = lower.substring(a+1);
char f = first.charAt(0);
If you are including the apache commons lang jar in your project than the easiest solution would be to do:
WordUtils.capitalize(Name)
takes care of all the dirty work for you. See the javadoc here
Alternatively, you also have a capitalizeFully(String) method which also lower cases the rest of the characters.