Fix duration regexp
Allow a text field value to be cleared