@terryyin's solution
@terryyin's solution applied to StrNCmp()