Remove trailing newlines for notification text