public String decryptCeaserCipher(String encryptedText, String key){
		
		String cipherKey = key;
		cipherKey = cipherKey.toUpperCase();
		char[] alphabet = new char[26];
		//lets create an array or alphabets
		for(int i=0; i<26; i++){
			alphabet[i] = (char) (i+65);
			//System.out.print(alphabet[i]);
		}
		ArrayList<Character> usedAlphabet = new ArrayList<Character>();
		cipherKey = trimCipherKey(cipherKey);

		for(int i =0; i<26; i++){			
			//first we put our cipherKey and remove any duplicate letters			
			if(i < cipherKey.length() ){
				usedAlphabet.add(cipherKey.charAt(i));
			}else if(usedAlphabet.contains(alphabet[i])){
				;
			}else{
				usedAlphabet.add(alphabet[i]);
			}
			/*
			 * we are missing some letters in the alphabet append the missing
			 * letters at the end of the list.
			 */
					
		}if(usedAlphabet.size() <26){
				//ArrayList<Character> missingAlphabet = new ArrayList<Character>();
			usedAlphabet = addMissingLetters(usedAlphabet);
				//usedAlphabet.addAll(missingAlphabet);
		}	
		String plainText = "";
		encryptedText = encryptedText.toUpperCase();
		encryptedText.replaceAll("\\s","");
		int currentChar;
			for(int i = 0; i<encryptedText.length(); i++){
				if(encryptedText.charAt(i)<65 || encryptedText.charAt(i)> 90){
					;
				}else{
					currentChar = getPosition(encryptedText.charAt(i), usedAlphabet);
					plainText += alphabet[currentChar]+"";
				}
			}
		plainText = plainText.replaceAll(".....(?!$)", "$0 ");
		return plainText;
	}