small fix string length compare