add the following code at line 1 of the admin/common/addpage.php file:
<?php if(isset($_POST['pagename'])) $_POST['pagename'] = str_replace(' ','',$_POST['pagename']); ?>
<?php if(isset($_POST['ContentGroup'])) $_POST['ContentGroup'] = str_replace(' ','',$_POST['ContentGroup']); ?>