Protect against non-string actions and methods