[Master] Fixed Issue #1241 (_scanString uppercase format specifiers)

Fixed Issue #1241: _scanString not supporting upper case format specifiers A, E, F, G, X.

Changeset for Master branch, merge whichever is most convenient.