added cleanup text function from TextWiller library