Strip whitespace from site settings

This PR does the stripping in the controller instead of SiteSettingExtension