Strip the line sent to the regex

Relates to #43