Fix crash when using --filter
Fix --input text reading a blank field at the start of the line and getting it wrong