Since you’ll be adding the newline, could you remove this empty line in the process?