added substr for long texts