Added printf-like format function to string.