"To the letter" is a phrase that usually implies one must act as near as perfect as possible while performing a task.