Make format return a string