Fix passing of string object to printf function.