public static String formatName(String name) {
		if (name.length() > 0) {
			char nameChars[] = name.toCharArray();
			for (int i = 0; i < nameChars.length; i++) {
				if (nameChars[i] == '_') {
					nameChars[i] = ' ';
					if (i + 1 < nameChars.length && nameChars[i + 1] >= 'a' && nameChars[i + 1] <= 'z') {
						nameChars[i + 1] = (char) (nameChars[i + 1] + 65 - 97);
					}
				}
			}
			if (nameChars[0] >= 'a' && nameChars[0] <= 'z') {
				nameChars[0] = (char) (nameChars[0] + 65 - 97);
			}
			return new String(nameChars);
		} else {
			return name;
		}
	}