added extra space trimming to editext fields