Getting the actual text value from the input