text formatting fn; closes #1