private List<String> formatHebrewSentences(List<String> sentences) 
	{
		ArrayList<String> result = new ArrayList<String>();
		int i = 0, j = 0,len;
		for (String sentence : sentences) 
		{
			len = sentence.length();
			i = 0;
			j = 1;
			//connect letters
			while (i < len)
			{
				while (j < len && sentence.charAt(j) != ' ')
				{
					j++;
				}
				char ch = sentence.charAt(j-1);
				if ((j-i == 1) && (ch != ',') && (ch != '.') && (ch != ':') && (ch != ';'))
				{
					//if the word is of length 1 - delete the space
					sentence = sentence.substring(0, j) + sentence.substring(j+1);
					i = j;
				}
				else
				{
					i = j+1;
					j = i;
				}
				len = sentence.length();
			}
			sentence = TextEditingUtility.connectPunctuations(sentence);
		    result.add(sentence);
		}
		return result;
	}