Conditionally expand abbreviations on a matching prefix.