Migrate `wrapWords` method. Clean up newlines.