Limit length of input field.