Error checking for Stringify and Magicify