getting scripts working where there are spaces in titles