Constructor of cron takes string pattern