idiom
the letter of the law
Meaning
following the exact wording of the law
Example
He follows **the letter of the law**, not its spirit.