in reply to drive space script dies on certain characters...
you might try putting double quotes around the $partName, looks like a syntax error from find something like (but totally untested).