public class OTPEncryptor extends Translator 
{
	private String key = "";
	
	/**
	 * Encrypts any text passed to it
	 * @param text - text to encrypt
	 * @return - encrypted text
	 */
	
	public String process(final String text)
	{
		key = generateKey(text.length());
		
		String encrypted = "";
		
		for (int i = 0; i < text.length(); i++)
		{
			encrypted += combine(text.charAt(i), key.charAt(i), '+');
		}
		
		return encrypted;
	}
	
	/**
	 * Gets the generated key
	 * @return - key
	 */
	
	public String getKey()
	{
		return key;
	}
}

@@ -171,16 +171,33 @@
 ted text
+ or error message
 %0A%09 */%0A%09%0A
@@ -241,16 +241,94 @@
 ext)%0A%09%7B%0A
+%09%09String mes = validate(text, %22%22);%0A%09%09%0A%09%09if (!mes.isEmpty())%0A%09%09%09return mes;%0A%09%09%0A
 %09%09key = 
@@ -355,19 +355,16 @@
 gth());%0A
-%09%09%0A
 %09%09String

Update OTPEncryptor.java