Fixed and improved the Group.replace example.