public static String singleOccurance(String s) {
		char c[] = s.toCharArray();
		int count = 0;
		for (int i = 0; i < c.length; i++) {
			if (c[i] != ' ') {
				for (int j = i + 1; j < c.length; j++) {
					if (c[i] == c[j]) {
						count++;
					} else {
						i = j - 1;
						break;
					}
				}
			}
		}
		System.out.println(count);
		char c1[] = new char[c.length - count];
		for (int i = 0, k = 0; i < c.length; i++, k++) {
			c1[k] = c[i];
			for (int j = i; j < c.length; j++) {
				if (c[i] != c[j]) {
					i = j - 1;
					break;
				}
			}
		}
		s = new String(c1);
		return s;
	}