Improve duration format validation