I'm having trouble with the first part of you instructions.
<?php echo(str_replace("_"," ",str_replace("Contact_Is_Group_", "", $pkey))); ?>
I added it in and it didn't work. Then I looked at it and thought maybe it had 2 extra spaces.
<?php echo(str_replace("_"," ",str_replace("Contact_Is_Group_","",$pkey))); ?>
But that didn't work. Any Ideas? I'm using the "block.php template"
The other code worked perfect!