using strlen(char * ) to get length of string