to do not copy if empty or if only contain newline
if (copyString) {
should be replaced by
if ( [copyString length] && ![copyString isEqual: @"\n"] ){