implemented a simple printf which can only use %c and %s as of now