Fixing the trimming feature for reverse dns groups.