implement a simple printf that support int, char and string