Remove newline from group_spec