public int getIndex(String str){
		char[] charArrays = str.toCharArray(); 
		int charType = CharacterUtil.getCharType(charArrays[0]);
		int ohterType = 0;
		int index = 0;
		boolean first = true;
		for (int i = 1; i < charArrays.length; i++) {
			if(charType == CharacterUtil.getCharType(charArrays[i]) && first){
				index++;
			}else{
				if(index+1 == i){
					ohterType = CharacterUtil.getCharType(charArrays[i]);
					first = false;
				}else{
					if(ohterType != CharacterUtil.getCharType(charArrays[i])){
						return -1;
					}
				}
			}
		}
		return index;
	}