Fix for inflector's incorrect camelCase replacement for acronyms Mark II

This is a new version of the patch #8156

Description of this bug: #8015

cc @fxn @steveklabnik @macksmind @strzalek