Removed string.h and implemented strlen method