Fix regex check for HSTS - correct capitalisation and optional space