Add isFirstCharCode function and tests.