several ways for implementing strlen() function