Remove unnecessary round-trip through string