implemented the strdup() to let linenoise() return a string

Main:
(1)Merged string.c into string-util.c
(2)Implemented the strdup() function
(3)Added some test code in main.c
Else:
(1)Added "static" qualifier to the putstr()