Prevent extra newlines in subsample