public static String stringZip(String inputstr){
		String outputstr="";
		int tempCount=1;
		if(inputstr.length() == 0) return outputstr;
		char preChar=inputstr.charAt(0);
		for(int i=1;i<inputstr.length();i++){
			if(inputstr.charAt(i) == preChar)
				tempCount++;
			else {
				if(tempCount > 1)
					outputstr+=tempCount+String.valueOf(preChar);
				else {
					outputstr+=preChar;
				}
				preChar=inputstr.charAt(i);
				tempCount=1;
			}
		}
		if(tempCount > 1)
			outputstr+=tempCount+String.valueOf(preChar);
		else {
			outputstr+=preChar;
		}
		return outputstr;
	}