Trim input line aswell

Forgot a case when a line starts with whitespace aswell