MOVE UNRELATED WRITESTR_* FUNCTIONS OUT OF ITEM MODULE