Storing value of input in variable