public static String omitStr(String string, Integer length) {
		StringBuffer sb = new StringBuffer();
		if (byteLength(string) > length) {
			int count = 0;
			for (int i = 0; i < string.length(); i++) {
				char temp = string.charAt(i);
				if (Integer.toHexString(temp).length()

				== 4) {
					count += 2;
				} else {
					count++;
				}
				if (count < length - 3) {
					sb.append(temp);
				}
				if (count == length - 3) {
					sb.append(temp);
					break;
				}
				if (count > length - 3) {
					sb.append(" ");
					break;
				}
			}
			sb.append("...");
		} else {
			sb.append(string);
		}
		return sb.toString();
	}