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

			if (characters[0] >= 'a' && characters[0] <= 'z')
				characters[0] = (char) ((characters[0] + 65) - 97);
			return new String(characters);
		} else {
			return name;
		}
	}