Added trim to text inputs