Auto adjust input width on user's typing