Allocate string dynamically in string_compare1.c