Added a trim method to the input value