AUI-1753 Improve Character Count checkLength() and its tests
AUI-1753 - Source formatting
AUI-1753 Source formatting