modifying header regex to allow for headers that don't having a closing #