Implemented my_strlenf function