The magician says a few words—his "abracadabra" or "hocus-pocus"—and presto! A rabbit pops out of a hat, or the coin in the magician's hand disappears.
A dictionary defines "letter" as "the literal meaning of something: the letter of the law," and "spirit" as "the real sense or significance of something: the spirit of the law.