Replace string manipulations/replacements with printer functions