If there are spaces in the table names, are there also spaces in the field names ?
It seems like an unnecessary piece of work, as although its not good practise to use spaces in names, your database should work fine with them.
Whereas if you go down this route, you potentially can 'corrupt'...