public static String deidentifyRight ( String str , int size ) { int end = str . length ( ) ; int repeat ; if ( size > str . length ( ) ) { repeat = str . length ( ) ; } else { repeat = size ; } return StringUtils . overlay ( str , StringUtils . repeat ( ' ' , repeat ) , end - size , end ) ; }
Deidentify right .