private static int findShortestRep(String str)
	{
		int answer = str.length();
		String rep = "";
		int i = 0;
		while(i < str.length())
		{
			String temp = str.substring(0, i);
			if(countOccurrences(str, temp) * temp.length() == str.length()) //then we have a periodic string
			{
				//so take the smallest rep
				if(answer > i)
				{
					answer = i;
				}
			}
			i++;
		}
		
		return answer;		
	}