Bug: Magento 1 trailing https in Base URL after migration

This is a bug that appeared after the Cloudways team migrated my Magento 1 site.

In core_config_data table, the values:

had my domain name after a few https.

One https was intentional but a few others appeared with line breaks. Amazingly the site worked fine even after researching that there shouldn’t be line breaks in http headers (where the base url in sent).

I removed them and no side effects yet but would like to know how they came to be.

In core_config_data table, the web/unsecure/base_url should be without HTTPS. For example: http://www.example.com/"

And,the web/secure/base_url should be with HTTPS.