better parsing of time periods, allows for upper case and writing them out witihout spaces.