workaround substr_compare() bug in php 5.5.11 - https://bugs.php.net/bug.php?id=67043