improve [NSString stringByReplacingNewlinesWithNewline:]

Use the built-in [NSString enumerateLinesUsingBlock:] method instead of
iteration