Talked with Ayman and this approach is good (preserving empty spaces, but not trailing empty lines)