strlen($str)) { return false; } return (substr_compare($str, $with, 0, strlen($with)) == 0); }