use memcmp instead of str[n]cmp for temp function XXXXXX checking