Using replace instead of trim() for groupid.