Removing trailing newline