Error syntax: Extra token 'oftype' after end of expression

It will be easier to read your code (and also easier for us to help you) if you quote your code: PSA: how to quote code with backticks