Implement precision for string printing.