private String convertToSnakeCaseFromCamelCase(String s){

		String result;
		
		if (s.length() == 0) return "";
		
		//int codeOfa = "a".charAt(0);
		//int codeOfz = "z".charAt(0);
		
		result = (s.charAt(0) + "").toUpperCase();
		for (int i = 1; i < s.length(); i++){
		//result = "";
		//for (int i = 0; i < s.length(); i++){
			if ((s.charAt(i) + "").matches("[a-z]+")){
			//if (s.charAt(i) < codeOfa || codeOfz < s.charAt(i) ){
				result += (s.charAt(i)+"").toUpperCase();
			}
			else if ((s.charAt(i) + "").matches("[A-Z]+")){
				result += "_" + s.charAt(i);
			}
		}
		
		return result;
	}