How to remove prefix value from group using wrapper

if(
  and(
    not(
      rule!APN_isBlank(
        ri!userId
      )
    ),
    isusernametaken(
      ri!userId
    )
  ),
  proper(
    concat(
      {
        user(
          ri!userId,
          "firstName",
          null
        ),
        " ",
        user(
          ri!userId,
          "lastName",
          null
        )
      }
    )
  ),
  if(
    isnull(togroup(ri!userId)),
  ri!userId,
  group(togroup(ri!userId), "groupName")
))
This is code. For this we will get below output. But we want to remove CR from output and display. How can we achive it

  Discussion posts and replies are publicly visible

Parents Reply Children