public static String deidentifyMiddle(String str, int start, int end) {

		int repeat;
		if (end - start > str.length()) {
			repeat = str.length();
		} else {
			repeat = (str.length()- end) - start;
		}
		return StringUtils.overlay(str, StringUtils.repeat('*', repeat), start, str.length()-end);
	}
public static String deidentifyMiddle ( String str , int start , int end ) { int repeat ; if ( end - start > str . length ( ) ) { repeat = str . length ( ) ; } else { repeat = ( str . length ( ) - end ) - start ; } return StringUtils . overlay ( str , StringUtils . repeat ( '*' , repeat ) , start , str . length ( ) - end ) ; }
Deidentify middle.

@param str the str
@param start the start
@param end the end
@return the string

@since 2.0.0