Modified string formatting for logging