Less calls to strlen by storing string length