Presented below is an interesting example of how you can change the case of a String into title case using simple string functions.
String str = "MERCURY";
str = str.toLowerCase();
int intTmp = (int)str.charAt(0) - 32;
char[] carray = str.toCharArray();
carray[0] = (char)intTmp;
str = String.valueOf(carray);
System.out.println(str);