Remove trailing newline so not to duplicate