Fix apply_year_directive

Using the `Y 2014` syntax worked fine, but using
`apply year 2014` resulted in the following error:
`Error: Year is out of valid range: 1400..10000`
since part of the given year string was chopped off.