I found a work around. adding a function to not allow for usernames with spaces.
// Force no username spaces
function custom_validate_username($valid, $username ) {
if (preg_match(“/\\s/”, $username)) {
// there are spaces
return $valid=false;
}
return $valid;
}