private String[] formatString(String s, int maxLen) {
		if (s == null) {
			return new String[] { "" };
		}

		if (s.length() < maxLen) {
			return new String[] { s };
		}

		String[] words = s.split(" ");

		List<String> stringList = new ArrayList<String>();

		StringBuilder sb = new StringBuilder();
		for (String word : words) {
			if ((sb.length() + word.length()) < maxLen) {
				sb.append(word).append(' ');
			} else {
				stringList.add(sb.toString().trim());
				sb = new StringBuilder(word).append(' ');
			}
		}
		stringList.add(sb.toString().trim());

		return stringList.toArray(new String[stringList.size()]);
	}