Change Family Type by Value

Well, it can be only a wrong family name, at least i see an extra spacebar in your string. If your scipt fails try solutions from this topic