optimise string equality comparison by always looking at the first character before calling into the C-API

--HG--
extra : amend_source : 65f946184bc3b291289c54f6787aba7d2ad43b20