improve [NSString stringByReplacingNewlinesWithNewline:]

Use the built-in [NSString enumerateLinesUsingBlock:] method instead of
iteration
Merge pull request #129 from eldenchen/master

improve [NSString stringByReplacingNewlinesWithNewline:]