added UITextFieldDelgate method, enabling to get input in text field at real time. fixed reverseString method