Added #include <string.h> to find strlen(str) on linux OS