Avoid costly string creation is assertion check.