Using kapture gem to save nil checking when using regex capture groups