question: @ Deprecated public static String replace ( String str , String what , String with ) { assert ( what . length ( ) > 0 ) ; return str . replace ( what , with ) ; }
target:  This replaces the occurances of 'what' in 'str' with 'with'