Allow HSTS max_age values to be a string or an integer

* Convert max_age to a string before doing regex \d+ check
* Add tests to ensure errors are not raised for different max_age values