sprint() is obsolete. Note some calls where to helper functions that use sprint(), not to sprint() directly, so both the helpers and the callers were modified.