left and right trim added to text processing