sir, Please, How

Hi sir,
Please,
How can i rename some fields by using the fiunction below, that need to edit :
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Service name' :
$translated_text = __( 'Service', 'wpmudev' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );

Regards
A.J.