Remove unnecessary sprintf