public static boolean allCaps(String str){
    	boolean retVal = true;
    	if(str != null){
    		for(int i = 0; i < str.length(); ++i){
    			if(!(Character.isLetter(str.charAt(i)) && Character.isUpperCase(str.charAt(i)))){
    				retVal = false;
    			}
    		}
    	}
    	return retVal;
    }