Change matching to match also empty line

Fixes #4