class Misc {

	public static String cleanseMessage(String inputString, String regexForHiding, String hideMethod) {
		if (StringUtils.isEmpty(regexForHiding)) {
			return inputString;
		}
		if ("firstHalf".equalsIgnoreCase(hideMethod)) {
			return hideFirstHalf(inputString, regexForHiding);
		} else {
			return hideAll(inputString, regexForHiding);
		}
	}

}