private static Word removeDoubleLetter(Word word)
	{
		int currentsize;
		int previoussize;

		Word initialword = word.clone();
		word = replaceCensoredWord(word);

		do
		{
			previoussize = word.Text.length();
			for(int i = 0; i < 26; i++)
			{
				char a = 'a';
				a += i;
				word.Text = word.Text.replace("" + a + a, "" + a);
				word.Text = word.Text.replace("" + a + " " + a, "" + a);
			}
			currentsize = word.Text.length();
			word = replaceCensoredWord(word);
		}while(currentsize != previoussize);

		if(word.Curse)
		{
			if (_ReplaceWithHappyWords && _HappyList.size() > 0)
			{								
				Pattern pattern = Pattern.compile("\t", Pattern.CASE_INSENSITIVE);
				Matcher matcher = pattern.matcher(word.Text);

				while(matcher.find())
				{
					Random rand = new Random();
					int i = rand.nextInt(_HappyList.size());
				
					word.Text = matcher.replaceFirst(" " + (String) _HappyList.toArray()[i]);
					matcher = pattern.matcher(word.Text);
				}
				
			}else{
				word.Text = randomizeChar(word.Text.replace('\t', _ReplacementChar));
			}
		}else{
			word = initialword;
		}

		word.Text = word.Text.replace("  ",  " ");
		return word;
	}