Strip lines before parsing them