diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 45dc2a9b714..435dffe518d 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -198,8 +198,8 @@
if (!data.wasEmailTestSuccessful) {
messages.push({
msg: t('core', 'You have not set or verified your email server configuration, yet. Please head over to the {mailSettingsStart}Basic settings{mailSettingsEnd} in order to set them. Afterwards, use the "Send email" button below the form to verify your settings.',)
- .replace('{mailSettingsStart} ', '')
- .replace(' {mailSettingsEnd}', ''),
+ .replace('{mailSettingsStart}', '')
+ .replace('{mailSettingsEnd}', ''),
type: OC.SetupChecks.MESSAGE_TYPE_INFO
});
}