fixed the wrong implementation of the standard C function

(1)strdup() -> Allocate enough memory for the string
(2)strcmp() -> Return the correct value