Emily Short’s extension “Punctuation Removal” (which comes pre-installed with the I7 application) handles this. The code itself is actually pretty simple:
After reading a command:
let T be "[the player's command]";
replace the regular expression "(?i)(Dr|Mr|Ms|Mrs)\." in T with "\1";
change the text of the player's command to T.