Improved the input validation in str_compare() and str_equal().
Improved the input validation in str_compare() and str_equal().

dryproject/libcpr,dryproject/libcpr,dryproject/libcpr,dryproject/libcpr,dryproject/libcpr,dryproject/libcpr