Java tutorial
//package com.java2s; public class Main { public static String makeProperFormat(String iString) { iString = iString.trim(); iString = iString.toLowerCase(); iString = iString.substring(0, 1).toUpperCase() + iString.substring(1); return iString; } }