public static String capitalize(String input) {

		if (input == null) {
			return null;
		}

		if (input.length() > 1) {
			for (int i = 0; i < input.length(); i++) {
				if (Character.isAlphabetic(input.charAt(i))) {
					return input.substring(0, i) + Character.toString(input.charAt(i)).toUpperCase() + input.substring(i + 1);
				}
			}
		}

		return input.toUpperCase();
	}
public static String capitalize(String input) {

		if (input == null) {
			return null;
		}

		if (input.length() > 1) {
			for (int i = 0; i < input.length(); i++) {
				if (Character.isAlphabetic(input.charAt(i))) {
					return input.substring(0, i) + Character.toString(input.charAt(i)).toUpperCase() + input.substring(i + 1);
				}
			}
		}

		return input.toUpperCase();
	}
public static String capitalize ( String input ) { if ( input == null ) { return null ; } if ( input . length ( ) > 1 ) { for ( int i = 0 ; i < input . length ( ) ; i ++ ) { if ( Character . isAlphabetic ( input . charAt ( i ) ) ) { return input . substring ( 0 , i ) + Character . toString ( input . charAt ( i ) ) . toUpperCase ( ) + input . substring ( i + 1 ) ; } } } return input . toUpperCase ( ) ; }
Capitalizes first character in given string

@param input to capitalize first character
@return capitalized string or null if null
Capitalizes first character in given string